#include <iostream>
#include <cmath>
#include<cstring>
using namespace std;

void strcpy(char a[]) {
	char b[300];
	int i=0,j=strlen(a)-1;

	while(b[i++]=a[j--]);
//cout<<"b="<<b<<endl;
	if(strcmp(a,b)==0) cout<<"Y"<<endl;
	else cout<<"N"<<endl;
}

int main() {
	char a[300];
	
	while(cin>>a){
		strcpy(a);
	}

	return 0;
}
